<template>

<div class="tmpl">
  <div v-html="newsContent">

  </div>
</div>


</template>
<script type="text/javascript">
export default{
  data(){
    return {
      newsContent: null,
      Vindex: 0
    }
  },
  methods: {
    getnewsView(){
      var _this = this;

      this.Vindex = this.$route.params.index;

      this.$http.jsonp('http://api.jisuapi.com/news/get?appkey=986aea6e71ad937d').then(
        res=>{
          _this.newsContent = res.body.result.list[this.Vindex].content;
        })
    }
  },
  created(){
    this.getnewsView();
  }
}
</script>
<style type="text/css" scoped>
  /*body{
    background-color: pink;
  }*/
 /* .tmpl{
    color: red;
  }*/
</style>